import request from '@/utils/request';

/**
 * 获取考勤统计
 */
export function getKaoqin(queryParams?: any) {
	return request({
		url: '/api/kaoqin' ,
		method: 'get',
	  	params: queryParams
	});
}

/**
 * 导入考勤记录
 *
 * @param file
 */
export function importKaoqin(file: File) {
	const formData = new FormData();
	formData.append('file', file);
	return request({
		url: '/api/kaoqin/import',
		method: 'post',
		data: formData,
		headers: {
			'Content-Type': 'multipart/form-data'
		}
	});
}
